SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 55487: The SCHEMA= option in a LIBNAME statement can cause errors when you create a Teradata table from PROC DS2

DetailsCodeAboutRate It

Error messages like the following might be generated when the SCHEMA= option is used in a LIBNAME statement to create a Teradata table from PROC DS2:

ERROR: Base table or view not found Object 'DUMMY2' does not exist.

ERROR: Unable to add rows to table.

ERROR: General error

To circumvent the problem, use the DATABASE= option instead of SCHEMA= option in the LIBNAME statement.

The sample code on the Full Code tab illustrates the problem.

Be aware that while the DATABASE= and SCHEMA= options are related, they do function differently. The DATABASE= option issues a DATABASE command, potentially altering the default database for your connection. In contrast, the SCHEMA= option alters the SQL that is submitted, prefacing table names with the SCHEMA= value. Therefore, SAS issues the following without the SCHEMA= option:

SELECT * FROM TAB 

With SCHEMA=OTHERDB specified, SAS issues the following:

SELECT * FROM OTHERDB.TAB"


Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASMicrosoft Windows 8.1 Pro x649.49.49.4 TS1M09.4 TS1M3
Microsoft Windows 109.49.49.4 TS1M09.4 TS1M3
Microsoft Windows Server 2008 R29.49.49.4 TS1M09.4 TS1M3
Microsoft Windows Server 2008 for x649.49.49.4 TS1M09.4 TS1M3
Microsoft Windows Server 2012 Datacenter9.49.49.4 TS1M09.4 TS1M3
Microsoft Windows Server 2012 R2 Datacenter9.49.49.4 TS1M09.4 TS1M3
Microsoft Windows Server 2012 R2 Std9.49.49.4 TS1M09.4 TS1M3
Microsoft Windows Server 2012 Std9.49.49.4 TS1M09.4 TS1M3
Windows 7 Enterprise x649.49.49.4 TS1M09.4 TS1M3
Windows 7 Professional x649.49.49.4 TS1M09.4 TS1M3
64-bit Enabled AIX9.49.49.4 TS1M09.4 TS1M3
64-bit Enabled Solaris9.49.49.4 TS1M09.4 TS1M3
HP-UX IPF9.49.49.4 TS1M09.4 TS1M3
Linux for x649.49.49.4 TS1M09.4 TS1M3
Solaris for x649.49.49.4 TS1M09.4 TS1M3
Microsoft Windows 8.1 Pro 32-bit9.49.49.4 TS1M09.4 TS1M3
Microsoft Windows 8.1 Enterprise x649.49.49.4 TS1M09.4 TS1M3
Microsoft Windows 8 Pro x649.49.49.4 TS1M09.4 TS1M3
Microsoft Windows 8.1 Enterprise 32-bit9.49.49.4 TS1M09.4 TS1M3
Microsoft Windows 8 Enterprise x649.49.49.4 TS1M09.4 TS1M3
Microsoft® Windows® for x649.49.49.4 TS1M09.4 TS1M3
z/OS 64-bit9.49.49.4 TS1M09.4 TS1M3
z/OS9.49.49.4 TS1M09.4 TS1M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.